import { _decorator, CCInteger, Component, Node, Vec3 } from 'cc';
import { GamerController } from './GamerController';
import { Weapon } from './Items/Weapon';
const { ccclass, property } = _decorator;

@ccclass('BodyTrigger')
export class BodyTrigger extends Component {

    @property(CCInteger)
    type = 0;

    controller: GamerController;

    Damage(weapon: Weapon, source?: GamerController) {
        this.controller.Damage(this, weapon, source);
    }

}


